package code

import (
	"gitee.com/DengAnbang/goutils/fileUtil"
)

const (
	OK        = 0  //成功
	NormalErr = -1 //普通错误
)

var (
	CurrentPath      = fileUtil.GetCurrentPath()
	RootName         = "/res/"
	RootPath         = CurrentPath + RootName
	ViewRootPath     = RootPath + "view/"
	LogRootPath      = RootPath + "log/"
	FileRootPath     = RootPath + "file/"
	DatabaseRootPath = RootPath + "database/"
	ConfigRootPath   = RootPath + "config/"
)

const (
	PCLinName   = "g.lic"
	GetB3dDBJar = "GetB3dDB.jar"
	GetB3dDbDLL = "GetDB.dll"
)
const (
	TypeTreeTemplate = "1" //模板树
	TypeTreeModel    = "2" //模型树
)

//socket相关常量
const (
	TypeConnect         = 1   //连接成功
	TypeOtherLogin      = 2   //其他人登陆
	TypeUploadSucceed   = 3   //上传成功
	PcTypeRegister      = 101 //注册
	PcTypeLogin         = 102 //登陆
	PCAuthenticationLic = 103 //图形核心认证
)
const (
	TypeTreeCreate         = 201 //创建树
	TypeTreeAddNode        = 202 //添加节点
	TypeTreeDeleteNode     = 203 //删除节点
	TypeTreeSelectNodeList = 204 //查询树
	TypeRenameNode         = 205 //查询修改名字
	TypeGetMyTreeNode      = 206 //查询自己的树默认第一个树
	TypeGetUserTreeList    = 207 //查询自己的树的列表
)

const (
	TypeTemplateCreate       = 301 //创建模板
	TypeTemplateAmend        = 302 //修改模板
	TypeTemplateSelect       = 303 //查询模板
	TypeTemplateDeleteByID   = 304 //删除模板
	TypeTemplateDeleteByNode = 305 //删除模板(根据节点,把节点下的所有模板都删除看来)
)

const (
	TypeModelBeanList     = 401 //获取模型列表
	TypeModelBean         = 402 //获取最新的模型
	TypeModelSelectTree   = 403 //获取模型的树结构
	TypeModelNodeAddition = 404 //查询模型树的结构的附加属性

)
